package com.lvmama.rhino.pojo.comment.entity;

import java.io.Serializable;

/**
 * 产品好中差评率列表
 */
public class ProductCommentAnalysis implements Serializable {

    private String categoryId;           //所属品类ID
    private String productName;          //产品名称
    private String productId;               //产品ID
    private Integer productCommentCount; //产品点评总数
    private double good;                 //好评率
    private double medium;               //中评率
    private double bad;                  //差评率
    private String categoryName;         //所属品类名称
    private String productShortName; //简短产品名称
    public String getCategoryName() {
        return categoryName;
    }

    public String setCategoryName(String categoryName) {
        this.categoryName = categoryName;
        return categoryName;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getProductCommentCount() {
        return productCommentCount;
    }

    public void setProductCommentCount(Integer productCommentCount) {
        this.productCommentCount = productCommentCount;
    }

    public String getProductShortName() {
        return productShortName;
    }

    public void setProductShortName(String productShortName) {
        if(null !=productShortName && productShortName.length() > 80){
            productShortName = productShortName.substring(0, 80) + "...";
        }
        this.productShortName = productShortName;
    }

    public double getGood() {
        return good;
    }

    public void setGood(double good) {
        this.good = good;
    }

    public double getMedium() {
        return medium;
    }

    public void setMedium(double medium) {
        this.medium = medium;
    }

    public double getBad() {
        return bad;
    }

    public void setBad(double bad) {
        this.bad = bad;
    }

    @Override
    public String toString() {
        return "ProductCommentAnalysis{" +
                "categoryId='" + categoryId + '\'' +
                ", productName='" + productName + '\'' +
                ", productId=" + productId +
                ", productCommentCount=" + productCommentCount +
                ", good=" + good +
                ", medium=" + medium +
                ", bad=" + bad +
                ", categoryName='" + categoryName + '\'' +
                ", productShortName='" + productShortName + '\'' +
                '}';
    }
}
